:(

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\' LIMIT 1' at line 1 [ SQL语句 ] : SELECT * FROM `y_product` WHERE id=\' LIMIT 1

错误位置

FILE: /www/wwwroot/www.xazant.com/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (320) trace(You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\' LIMIT 1' at line 1
[ SQL语句 ] : SELECT * FROM `y_product` WHERE id=\' LIMIT 1 , , ERR)
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT * FROM `y_product` WHERE id=\' LIMIT 1 )
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(Array)
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/home/Lib/Action/ProductAction.class.php (40) Model->find()
[25-05-10 03:19:05] () ProductAction->content()
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/ThinkPHP/Lib/Core/App.class.php (169) ReflectionMethod->invoke()
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/ThinkPHP/Common/runtime.php (243) Think::start()
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/ThinkPHP/ThinkPHP.php (30) require(/www/wwwroot/www.xazant.com/ThinkPHP/Common/runtime.php)
[25-05-10 03:19:05] /www/wwwroot/www.xazant.com/index.php (7) require(/www/wwwroot/www.xazant.com/ThinkPHP/ThinkPHP.php)